package com.joolun.activity.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.joolun.activity.mapper.ActivityAwardInfoMapper;
import com.joolun.activity.domain.ActivityAwardInfo;
import com.joolun.activity.service.IActivityAwardInfoService;

/**
 * 活动奖品明细Service业务层处理
 *
 * @author www.joolun.com
 * @date 2022-11-22
 */
@Service
public class ActivityAwardInfoServiceImpl extends ServiceImpl<ActivityAwardInfoMapper, ActivityAwardInfo> implements IActivityAwardInfoService
{
    @Autowired
    private ActivityAwardInfoMapper activityAwardInfoMapper;

    /**
     * 查询活动奖品明细
     *
     * @param id 活动奖品明细ID
     * @return 活动奖品明细
     */
    @Override
    public ActivityAwardInfo selectActivityAwardInfoById(String id)
    {
        return activityAwardInfoMapper.selectActivityAwardInfoById(id);
    }

    /**
     * 查询活动奖品明细列表
     *
     * @param activityAwardInfo 活动奖品明细
     * @return 活动奖品明细
     */
    @Override
    public List<ActivityAwardInfo> selectActivityAwardInfoList(ActivityAwardInfo activityAwardInfo)
    {
        return activityAwardInfoMapper.selectActivityAwardInfoList(activityAwardInfo);
    }

    /**
     * 新增活动奖品明细
     *
     * @param activityAwardInfo 活动奖品明细
     * @return 结果
     */
    @Override
    public int insertActivityAwardInfo(ActivityAwardInfo activityAwardInfo)
    {
        return activityAwardInfoMapper.insertActivityAwardInfo(activityAwardInfo);
    }

    /**
     * 修改活动奖品明细
     *
     * @param activityAwardInfo 活动奖品明细
     * @return 结果
     */
    @Override
    public int updateActivityAwardInfo(ActivityAwardInfo activityAwardInfo)
    {
        return activityAwardInfoMapper.updateActivityAwardInfo(activityAwardInfo);
    }

    /**
     * 批量删除活动奖品明细
     *
     * @param ids 需要删除的活动奖品明细ID
     * @return 结果
     */
    @Override
    public int deleteActivityAwardInfoByIds(String[] ids)
    {
        return activityAwardInfoMapper.deleteActivityAwardInfoByIds(ids);
    }

    /**
     * 删除活动奖品明细信息
     *
     * @param id 活动奖品明细ID
     * @return 结果
     */
    @Override
    public int deleteActivityAwardInfoById(String id)
    {
        return activityAwardInfoMapper.deleteActivityAwardInfoById(id);
    }
}
